using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

using System.Data.OleDb;

namespace BILab.Quality.BISolutionAudit.DAL
{
	public class SASBIServer
	{

		private string _connectionString;
		private string _initialStatement;
		private OleDbConnection _connection;

		public string InitialStatement
		{
			get { return _initialStatement; }
			set { _initialStatement = value; }
		}

		public OleDbConnection Connection
		{
			get { return _connection; }
			set { _connection = value; }
		}

		public string ConnectionString
		{
			get { return _connectionString; }
			set { _connectionString = value; }
		}

		public void Open()
		{
			Connection = new OleDbConnection(ConnectionString);
			Connection.Open();
			OleDbCommand cmd = new OleDbCommand(InitialStatement, Connection);
			cmd.ExecuteNonQuery();
		}

		public void Close()
		{
			Connection.Close();
		}

		 

	}
}
